package com.mathset.business.dao.impl;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.mathset.bean.MailBox;
import com.mathset.bean.Member;
import com.mathset.business.dao.IMemberDao;
import com.mathset.mybatis.mapper.IMemberOperation;
import com.mathset.mybatis.mapper.IQuestionOperation;

@Repository
public class MemberDao implements IMemberDao {

	@Autowired
	private IMemberOperation iMemberOperation;
	
	@Override
	public int addMember(Member member) {
		return iMemberOperation.addMember(member);
	}

	@Override
	public Member retrieveMemberByUserNameAndPassword(Map<String, String> map) {
		return iMemberOperation.retrieveMemberByUserNameAndPassword(map);
	}

	@Override
	public Member retrieveMemberByUserNameOrMaidId(Map<String, String> map) {
		return iMemberOperation.retrieveMemberByUserNameOrMaidId(map);
	}

	@Override
	public Member retrieveMemberByMailAddress(String email) {
		return iMemberOperation.retrieveMemberByMailAddress(email);
	}

}
